package 递归;

public class 递归 {
    public static void main(String[] args){
        int m =function(10);
        System.out.println(m);
    }

    private static int function(int i) {
        if (i<=0) return 1;
        else return i*function(i-1);
    }

}
